﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class web_Controls_page_bottom_footer : System.Web.UI.UserControl
{
    Common comm = new Common();
    public DataTable dtt;
    public string sFooter = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!(String.IsNullOrEmpty(Session["id_page"].ToString())))
            {
                dtt = comm.getDataTable("select footer_text from CreatePages_page where id_page=" + Session["id_page"].ToString());
                if (dtt.Rows.Count > 0)
                {
                    if (!(String.IsNullOrEmpty(dtt.Rows[0]["footer_text"].ToString())))
                        sFooter =dtt.Rows[0][0].ToString();
                }
            }
        }
        if (Request.Url.ToString().Trim().Contains("web"))
        {
            img_lp.ImageUrl = "~/web/images/copyright_lp.gif";
        }
        else
        {
            img_lp.ImageUrl = "../../web/images/copyright_lp.gif";
        }
    }
}
